##
## Makefile for  in /home/lund/Projets/malloc
## 
## Made by florian dewulf
## Login   <dewulf_f@epitech.net>
## 
## Started on  Mon Feb  4 13:31:25 2013 florian dewulf
## Last update Fri Feb  8 13:26:37 2013 florian dewulf
##

NAME=		libmy_malloc_$(HOSTTYPE).so

LINK=		libmy_malloc.so

SRC=		func.c		\
		tools.c		\
		malloc.c	\
		realloc.c

OBJ=		$(SRC:.c=.o)

CFLAGS=		-fPIC -W -Wextra -Wall

$(NAME):	$(OBJ)
		gcc -shared -o $(NAME) $(OBJ)
		ln -s $(NAME) $(LINK)

all:		$(NAME)

clean:
		rm -f $(OBJ)

fclean:		clean
		rm -f $(NAME)
		rm -f $(LINK)

re:		fclean all